package Service;

import DAO.userDao;
import DAO.userDaoImpl;
import Damain.user;
import Utils.MD5Utils;

public class UserServiceImpl implements UserService {
    private userDao  userDao = new userDaoImpl();

    @Override
    public user Login(String username, String password) {
        //对密码做加密处理
        String encrypt = MD5Utils.encrypt(password);
        //调用持久层查询数据库


        return  userDao.login(username, encrypt);
    }
}
